Part Number Hot Search : 
TBB1004 S04RP EG1125 SLE66C N25F80 N5400 PEB2086 TC1029
Product Description
Full Text Search
 

To Download TAN-327 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  TAN-327 2002-12-06 1 audio ic application circuit TAN-327 example of 3-v fm radio circuit ta2159f compact fm tuner module reference model outline this is an application circuit example of an fm radio reference model targeting compact sets such as cellular phones, mobile devices, pda, and mp3. the ta2159f is a qfp64-pin ic, which is integrated an fm front-end, an fm if amp detector, a stereo decoder, a pll circuit, and a pll control microcontroller. the fm turner module can be used to tune in fm by itself. please refer to the specifications for microcontroller from the page nine of this technical datasheet and the reference model diagram. fm tuner module characteristics characteristic rating unit supply voltage 3 v current dissipation (quiescent) 19 ma signal frequency range 87.5 to 108 mhz intermediate frequency 10.7 mhz sensitivity 18 db p v emf dmc-16204 lcd 5 v reference model tmp91cw 12af fm t uner mo d u l e ta2152f h/p amp lifi er h/p jack ta4803f 5 - v to 3 - v re g ulator ke y s 3 - v m i crocon t ro ll er 5v gnd v o l ume 3 - v t o 5 - v i n t er f ace 163245ft r pll microcont roller l gnd uart v t v cc ta2159f qfp64 pin tuner up st gnd ant fm module 23.5 mm 22 mm
TAN-327 2002-12-06 2 diagram showing all circuits in reference model h: eur.and u.s.a band l: japan band 3 v 3 v r/w e r/s db0~db7 tc74ac86ft e 15 pf 15 pf 1 p f 1s1588 10 : 100 k : 3 v 15 14 13 18 17 16 21 20 19 24 23 22 10 11 12 7 8 9 4 5 6 1 2 3 0.22 p f 47 p f 22 p f 0.22 p f 220 p f 2.2 p f 4.7 p f 22 p f 0.47 p f 10 p f 1 p f gnd  3 v 1 2 3 3 2 1 v cc v t gnd d out up ant gnd st lch rch d in 3 v 1 p f 1000 pf lch rch ta2152fn 3 v headphone jack hsj1650-010020 sw fm tuner module 11 holes (1.778-mm pitch) volume: 10-k : rk10j12e0a0a rch lch port control r/w 1 tmp91cw12af 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 27 28 26 30 31 29 32 33 34 35 37 38 36 40 41 39 42 43 44 45 47 48 46 50 49 10 : 100 k : 3 v 5 v tuner 1 3 2 33 p f ta4803f gnd 5 v 5 v 3 v tuner 3 v microcontroller gnd microcontroller dc-dc converter 0.33 p f gnd cs0 bus control 5 v 1dir 1b1 (r/w) 1b2 (e) 1b3 (r/s) 1 oe 2 oe 2dir 2b1 2b2 2b3 2b4 2b5 2b6 2b7 2b8 v ccb v cca 2a1 2a2 2a3 2a4 2a5 2a6 2a7 2a8 1a1 1a2 1a3 r/w e r/s db0 db1 db2 db3 db4 db5 db6 db7 v cc v ss v ee 3 v tc74lcx163245ft lcd module dmc16204 volume: 10-k : rh0411c14j 4 10 15 21 28 34 39 45 shorted shorted 10 : 100 k : 3 v 10 : 100 k : 3v load memory up power up seek p53 vrefl avss avcc p86 p87 txd0 rxd0 am0 dvcc p52 p51 p50 dvss dvcc cso r/w wr rd dvcc dvss pa0 pa5 pa6 pa7 p00 p01 p02 p03 p04 p05 p06 p07 56 k : reset vrefh 220 p f 10 : 100 k : 3 v 4.7 p h
TAN-327 2002-12-06 3 application circuit of fm tuner module 4.7 p f 64 63 62 61 60 59 58 56 55 54 53 52 51 50 49 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 57 3300 pf gnd 3300 pf 30 k : kv1780 30 k : 3300 pf 5 pf kv1780 15 k : 3300 pf 470 : 0.033 p f 0.01 p f 10 m : 12 pf dt261: 75 khz 0.015 p f 330 pf 10 k : 0.015 p f 0.1 p f 330 : sfecs10m7fa 0.022 p f 3.3 k : 0.1 p f 4.7 p f l-ch r-ch 4.7 p f cdacv 10m7ga gnd 22 p f v cc 10 k : 0.01 p f 4.7 p f 1 k : d out d in 3.3 k : 200 : 2 k : 390 : 10 p f 0.1 p f 0.01 p f v t 1 k : 0.01 p f 22 k : 3.3 k : ant rf in rf gnd rf out rf v cc frame frame fm osc osc out st led if req. det out det in lpf1 lpf2 lch-out rch-out quod frame frame agc gnd fm if v cc mix out gnd xi xo reset frame frame d out d in tuner power do v dd fm in gnd if in sleep nc frame if count test1 area bus dis up key uart v dd beep mono/st mute test2 0.1 p f 0.022 p f nc nc nc frame nc nc nc nc nc nc nc 0.033 p f 3.3 k : 0.01 p f 15 k : japan band jp1 12 pf 100 k : 47 pf 4700 pf 68 p h c35 l3 c34 toko wire chip 2012 5cbm l2 c32 c1 r21 c31 c30 r20 c33 c29 5cbm l1 r19 c27 r18 d2 d1 c26 c28 r22 c25 c24 r17 stereo sig c23 c22 r16 c21 c20 c19 x2 c18 c17 c16 fl1 c15 r15 c14 tr4 r14 c13 c12 x1 r13 r12 eur. and u.s.a. band jp2 jp3 1 m : r3 up key r1 r2 tr1 c2 c3 c4 c5 r5 r4 tr2 tr3 r6 c6 r9 r10 1 p f c7 r23 r24 c9 c10 r11 0.1 p f c8 10 k :
TAN-327 2002-12-06 4 coil specifications turns no. application f (hz) l ( p h) c o (pf) q o 1-2 2-3 1-3 4-6 wire reference l1 rf1 in eur. and u.s.a. 100 m  33.4 61   3  657an-1609 (red) l2 osc in u.s.a. 100 m  40.2 67   3  657an-1608bit (black) l1 rf in japan 100 m  24.9 66   4  657an-1611 (green) l2 osc in japan 100 m  17.9 69   5  657an-1610bit (black) l2 rf2 in eur. and u.s.a. 100 m  34.4 62   3  657an-1591 (green) (t) : toko co., ltd. pin connection (back view) fm tuner module parts list for eur. and u.s.a. band when variable coil is used. no. ref no. product number specification remarks 1 ic1 ta2159f 2 tr1 2sc4738 3 tr2 2sc4738 4 tr3 2sc4738 5 tr4 2sa1832 6 d1, d2 kv1780s toko co., ltd. eur. and u.s.a. 7 l1 (note) 5cbm 657an-1608bit toko co., ltd. band osc 8 l2 (note) 5cbm 657an-1609 toko co., ltd. band rf 9 l3 llq2012-e68nj toko co., ltd. eur. and u.s.a. 10 fl1 sfecs10m7fa00-b0 murata manufacturing co., ltd. 11 x1 dt-261 75 khz (9 pf) daishinku corp. 12 x2 cdacv10m7ga116-b0 murata manufacturing co., ltd. 13 jp1, 2, 3 mcr01mzsj000 0 : r 5% 1005 model rohm other similar products can be usable 14 r4 mcr01mzsj201 200 : r 5% 1005 model rohm other similar products can be usable 15 r10, 24 mcr01mzsj102 1 k : r 5% 1005 model rohm other similar products can be usable 16 r11, 14, 17 mcr01mzsj103 10 k : r 5% 1005 model rohm other similar products can be usable 17 r12 mcr01mzsj104 100 k : r 5% 1005 model rohm other similar products can be usable 18 r3 mcr01mzsj105 1 m : r 5% 1005 model rohm other similar products can be usable l1, l2
TAN-327 2002-12-06 5 no. ref no. product number specification remarks 19 r13 mcr01mzsj106 10 m : r 5% 1005 model rohm other similar products can be usable 20 r18, 19 mcr01mzsj153 15 k : r 5% 1005 model rohm other similar products can be usable 21 r5 mcr01mzsj202 2 k : r 5% 1005 model rohm other similar products can be usable 22 r2 mcr01mzsj223 22 k : r 5% 1005 model rohm other similar products can be usable 23 r20, 21 mcr01mzsj303 30 k : r 5% 1005 model rohm other similar products can be usable 24 r15 mcr01mzsj331 330 k : r 5% 1005 model rohm other similar products can be usable 25 r1, 9, 16, 23 mcr01mzsj332 3.3 k : r 5% 1005 model rohm other similar products can be usable 26 r6 mcr01mzsj391 390 : r 5% 1005 model rohm other similar products can be usable 27 r22 mcr01mzsj471 470 : r 5% 1005 model rohm other similar products can be usable 28 c15, 26 cm05b333k16ah 0.033 p f b k 16 v 1005 model kyocera other similar products can be usable 29 c27 (note) cm05ch050c50ah 5 pf ch j 50 v 1005 model kyocera other similar products can be usable 30 c30 (note) cm05ch030c50ah 3 pf ch j 50 v 1005 model kyocera other similar products can be usable 31 c35 cm05ch470j50ah 47 pf ch j 50 v 1005 model kyocera other similar products can be usable 32 c12, 13 cm05ch120j50ah 12 pf ch j 50 v 1005 model kyocera other similar products can be usable 33 c1, 2, 3, 10, 16 cm05w5r103k16ah 0.01 p f w5r k 16 v 1005 model kyocera other similar products can be usable 34 c17, 18 cm05w5r153k16ah 0.015 p f w5r k 16 v 1005 model kyocera other similar products can be usable 35 c23, 33 cm05w5r223k16ah 0.022 p f w5r k 16 v 1005 model kyocera other similar products can be usable 36 c28, 29, 31, 32 cm05w5r272k50ah 2700 pf w5r k 50 v 1005 model kyocera other similar products can be usable 37 c24 cm05w5r331k50ah 330 pf w5r k 50 v 1005 model kyocera other similar products can be usable 38 c34 cm05w5r472k25ah 4700 pf w5r k 25 v 1005 model kyocera other similar products can be usable 39 c4, 5, 8, 21, 22 cm05y5v104z16ah 0.1 p f y5v z 16 v 1005 model kyocera other similar products can be usable 40 c14 tmcma0j226mtr 22 p f m 6.3 v case a kyocera other similar products can be usable 41 c7 tmcp0j105mtr 1 p f m 6.3 v case p kyocera other similar products can be usable 42 c6 tmcp0j106mtr 10 p f m 6.3 v case p kyocera other similar products can be usable 43 c9, 19, 20, 25 tmcp0j475mtr 4.7 p f m 6.3 v case p kyocera other similar products can be usable 44 lead frame 180 (0.8) 1.8 mm-pitch
TAN-327 2002-12-06 6 note: 1. install jp2 and uninstall jp3 for japan band. 7 l1 5cbm 657an-1610bit toko co., ltd. osc for japan band 8 l2 5cbm 657an-1611 toko co., ltd. rf for japan band 28 c27 cm05ch010c50ah 1 pf ch j 50 v 1005 model kyocera other similar products can be usable 29 c30 cm05ch050c50ah 5 pf ch j 50 v 1005 model kyocera other similar products can be usable 2. osc fixed coil version for eur. and u.s.a. band (economy model) 7 l1 llq2012-e47ng 47nh 2012 model, toko co., ltd. osc for eur. and u.s.a. band 8 l2 5cbm657an-1591 toko co., ltd. rf for eur. and u.s.a. band 28 c27 cm05ch050c50ah 5 pf ch j 50 v 1005 model kyocera other similar products can be usable 29 c30 cm05ch050c50ah 5 pf ch j 50 v 1005 model kyocera other similar products can be usable
TAN-327 2002-12-06 7 example of printed circuit board pattern of fm tuner module (top view) this module consists of four layers of pcb. the first and the fourth layers are shown here. figure of pcb with parts mounted ic-mounted side chip-mounted side pattern layout ic-mounted side chip-mounted side
TAN-327 2002-12-06 8 fm tuner characteristic data response (db) 0db 210 mvrms (l, rch) separation (db) thd (%) output level (db) output level (db) thd (%) detuning frequency ' f (khz) level (db) signal frequency (mhz) usable sensitivity, limiting sensitivity (db p v emf) image ratio (db) input signal level vin (db p v emf) output level (db) input signal level vin (db p v emf) input signal level vin (db p v emf) fm (hz)  30  400 1.0  300  200  100 0 100 200 300 400  20  10 0 2.0 3.0 4.0 thd r 75 khz r 22.5 khz vod r 75 khz 98 mhz v cc 3 v f m 400 hz v t 1.64 v v in 60db p v emf 0 86 90 94 98 102 106 108 10 20 30 40 limiting sensitivity (  3db) usable sensitivity (s/n 30db) if stop sensitivity 5/5 v cc 3 v mod r 22.5 khz f m 400 hz bw 400 hz~30 khz image ratio (v o 30 mvrms)  80  20 0 20 40 60 80 100 120  60  40  20 0 thd r 22.5 khz signal amr mod 30% f m 400 hz r 75 khz noise (400 hz ~30 khz) ~30 khz v cc 3 v f m 400 hz v t 1.64 v 0db 71 mvrms bw 400 hz~30 khz 98 mhz r 22.5 khz  80  20 0 20 40 60 80 100 120  60  40  20 0 thd r 22.5 khz amr mod 30% f m 400 hz r 75 khz v cc 3 v f m 400 hz v t 2.11 v 0db 71 mvrms bw 400 hz~30 khz 108 mhz r 22.5 khz signal  80  20 0 20 40 60 80 100 120  60  40  20 0 thd r 22.5 khz signal amr mod 30% f m 400 hz r 75 khz noise (400 hz~30 khz) ~30 khz bw 400 hz~30 khz 87.5 mhz r 22.5 khz v cc 3 v f m 400 hz v t 1.05 v 0db 71 mvrms 30 20 10 0 10 20 1 40 100 200 400 1 k 2 k 4 k 10 k 2 3 4 5 6 20 30 40 50 thd separation response stereo threshold v cc 3 v, f m ext v t 1.64 v 60db p v emf 98 mhz r 75 khz 0.022 p f 0.01 p f 3.3 k : v cc 0.01 p f lpf constant: constant of small parts : lch, l o r : rch, r o l
TAN-327 2002-12-06 9 software specifications precautions ? please refer the setting formats on the ta2159f data sheet. ? control software in c language is provided free of charge, but operations cannot be guaranteed, and technical support cannot be provided. ? the operation is guaranteed and technical support is provided only when toshiba?s microcontroller is used. 1. main features .................................................................................................................. ..................11 1.1 function (1): power on/off..................................................................................................... .. 12 1.2 function (2): 1 step up........................................................................................................ ........ 12 1.3 function (3): up searching ..................................................................................................... .... 12 1.4 function (4): memory scan ...................................................................................................... ... 12 1.5 function (5): memory reading ................................................................................................... .12 1.6 function (6): frequency loading................................................................................................ .12 1.7 function (7): lcd display...................................................................................................... ...... 12 1.8 function (8): uart controlling................................................................................................. ... 12 1.9 function (9): band controlling in japan/other countries ........................................................... 12 2. system overview ................................................................................................................ .............. 13 3. description of modules ......................................................................................................... ............ 14 3.1 system management module ...................................................................................................... 1 4 3.1.1 ram configuration .............................................................................................................. ... 14 3.1.2 system management module initializing............................................................................... 15 3.1.3 system operation mode management.................................................................................. 15 3.1.4 timer interrupt ................................................................................................................ ....... 15 3.1.5 system management module flow diagrams ...................................................................... 15 3.2 tuner control module ........................................................................................................... ....... 17 3.2.1 ram configuration ................................................................................................................ 17 3.2.2 tuner control module initializing process .......................................................................... 18 3.2.3 tuner communication control process ............................................................................. 18 3.2.4 data transmission interrupt process ................................................................................. 18 3.2.5 data reception interrupt process ....................................................................................... 18 3.2.6 tuner control module flow diagrams ................................................................................ 18 3.3 key control module ............................................................................................................. ........ 20 3.3.1 ram configuration .............................................................................................................. ... 20 3.3.2 key control module initializing process ......................................................................................... 20 3.3.3 key scan process ............................................................................................................... .. 20 3.3.4 key decoding process .......................................................................................................... 2 0 3.3.5 key control module flow diagrams...................................................................................... 21 3.4 display control module......................................................................................................... ....... 22 3.4.1 ram configuration .............................................................................................................. ... 22
TAN-327 2002-12-06 10 3.4.2 initializing display control module ........................................................................................ 22 3.4.3 display mode management process..................................................................................... 22 3.4.4 display control module flow diagram .................................................................................. 23 3.5 lcd driver module .............................................................................................................. ........ 24 3.5.1 lcd driver module initialization process.............................................................................. 25 3.5.2 lcd display data transfer process...................................................................................... 25 3.5.3 lcd driver module flow diagram......................................................................................... 26
TAN-327 2002-12-06 11 1. main features ? application ???????????????? ta2159 tuner controller reference model ? mcu ?????????????????????? tmp91cw12f ? program language ???????? c language ? function (1) power on/off (2) one step up (3) up searching (4) memory scan (up to 20 stations) (5) memory reading (6) frequency loading (7) lcd display (8) uart controlling (9) band controlling in japan/other countries
TAN-327 2002-12-06 12 1.1 function (1): power on/off switches on/off whenever the power key is pressed once. on sets the saved status. off saves the status when the power key was switched off. ( during the up search and the memory scan, saves the settings of when those functions were started. ) 1.2 function (2): 1 step up receiver frequency goes up one step whenever the up key is pressed once. 1.3 function (3): up searching searches a receiving station when the up key is pressed for longer than 500 ms. if a key input is applied during the search, returns to the status of when the search was started. 1.4 function (4): memory scan holding the memory key down and pressing the up key twice start the memory scan at the current receiving station. when 20 stations (max) are entered into the memory, or memory scan is returned to the starting receiving station, completes memory scan. if a key input is applied during the memory scan, returns to the status of when the memory scan was started. 1.5 function (5): memory reading reads out receiving stations in the memory whenever the memory key is pressed once. 1.6 function (6): frequency loading loads frequency of the current receiving station from the fm tuner module whenever the load key is pressed once. 1.7 function (7): lcd display shows ?fm? and ?receiver frequency? on a display at power on, ?memo? and ?station numbers in memory (up to 20 stations)? at memory reading, ?seek? at the up search and the memory scan, and ?st? when receives stereo signals from the tuner. 1.8 function (8): uart controlling uses uart (data transmission rate: 1200 bps) to communicate with the fm tuner module, and transmits/receives commands, frequency to be set, and frequency that the tuner has received. 1.9 function (9): band controlling in japan/other countries checks high-/low-input of band switch at power on, and determines the minimum and the maximum frequencies, and frequency step width of band in japan/other countries. band in japan: 76.00 to 90.00 mhz (100-khz step) band in other countries: 87.50 to 108.00 mhz (50-khz step)
TAN-327 2002-12-06 13 2. system overview the tmp91cw12f consists of system management module, tuner control module, key control module, display control module, and lcd driver module. module name process description system management module (sos.c) system management module initializing process system operation mode management process timer interrupt (intta1) process: 5 ms tuner control module (tuner.c) tuner control module initializing process tuner communication control process data transmission interrupt (inttx0) process data reception interrupt (intrx0) process key control module (key.c) key control module initializing process key scan (intta0) process: 2 [ms] key decoding process display control module (display.c) display control module initializing process display mode management process lcd driver module (lcddriver.c) lcd driver module initializing process lcd display data transmission process the followings are the tmp91cw12f system configuration. main routine ? system operation mode management process ? tuner communication control process ? key decoding process ? display mode management process ? lcd display-data transmission process initializing process ? system management module initializing process ? tuner control module initializing process ? key control module initializing process ? display control module initializing process ? lcd driver module initializing process intta1 (5[ms]) ? timer interrupt process (managing the time at operation mode) intta0 (2[ms]) ? key scan process inttx0 ? data transmission interrupt process intrx0 ? data reception interrupt process
TAN-327 2002-12-06 14 3. description of modules 3.1 system management module this module consists of system management module initializing process, system operation mode management process, and timer interrupt (intta1) process that manages time to be used at operation mode. note: source file = sos.c, sos.h. 3.1.1 ram configuration the following ram chips are used in this module. name data length (byte) contents gsosmode 1 operation mode gsosmodesave 1 saves the operation mode temporarily gsosfrequdata 2 frequency data gsosfrequlowend 2 minimum frequency data gsosfrequhightend 2 maximum frequency data gsosfrequstep 1 frequency data per one stepwidth gsosmemnummax 1 number of all receiving stations in memory gsosmemnumindex 1 receiving station numbers gsosmemnumindexsave 1 saves the receiving station numbers temporarily gsosflashcnt 1 display flashing timer counter gsostunercmdtimer 1 timer counter for disabling command transmission to the tuner gsosactinitmode 1 internal operation mode in initial mode gsosupstepmode 1 internal operation mode in up step mode gsosupscanmode 1 internal operation mode in up scan mode gsosscanstopmode 1 internal operation mode in stop mode gsosloadmode 1 internal operation mode in frequency data loading mode gsosmemorysetmode 1 internal operation mode in the memory set mode gsosmemoryscanmode 1 internal operation mode in the memory scan mode gsosmsstartfrequ 2 frequency when the memory scan is started gsosmsjudgefrequ 2 compared frequency to check completion of the memory scan (for detecting that the scan has lapped around from the selected frequency to the one immediately before that.) gsosmsjudge 1 branch conditions for checking completion of memory scan gsosmsjudgeend 1 indicates the memory scan has been lapped around from the selected frequency to the one immediately before that. gsosmsjudgestop 1 indicates the memory scan lapped around from the selected frequency to the one immediately before that. gsoscallmodesave 1 operation mode for recovering in case of a key input during the up scan and the memory scan (saved temporarily) gsostunerctrlmode 1 internal operation mode in tuner command and frequency setting mode gsostunerctrlresult 1 result message from tuner control module gsostunerctrlcmddata 1 tuner control command data gsostunerctrlcmdmem 1 saves the tuner control command data temporarily gsostunerctrlfrequdata 2 frequency data transferred to/received from tuner control module gsavedata 10 saves the settings: operation mode, receiving station numbers, number of all receiving stations in memory, receiver frequency, minimum frequency, maximum frequency, frequency data every one step gsavememoryfrequ 40 frequency of receiving station in memory (up to 20 stations)
TAN-327 2002-12-06 15 3.1.2 system management module initializing initialize variables, ports, and timer interrupting used in system management module. 3.1.3 system operation mode management the tmp91cw12f receives key data input from key controlling module, and changes the system operation mode from memory mode to normal mode according to the information about operation modes, key data, and measured time. the messages for operations of tuner control module and display module are determined. the followings are the operation modes in system operation mode management process. operation mode mode management process power off mode saves current settings. display is off. normal mode shows receiver frequency. waits a key input. up step mode receiver frequency goes up one step. memory mode reads out station numbers in memory. shows station numbers in memory and receiver frequency. waits a key input. memory setting mode sets the station numbers in memory. frequency loading mode loads frequency of the tuner up scan mode executes up search and displays ?seek?. waits a key input. memory scan mode displays memory scan and memory seek. waits a key input. initial mode reads out the saved settings. display is on tuner frequency setting mode sets receiver frequency for tuner control module. tuner command setting mode sets commands for tuner control module. stop mode sets frequency for receiving, and stops the tuner. 3.1.4 timer interrupt performs flashing-count of the display, and the timer count to check the completion of up scan and memory scan by generating interrupt every 5-ms cycle. based on those counted data, the tmp91cw12f controls on/off for display flashing and permission/prohibition of transferring messages to tuner control module in system operation mode management process. 3.1.5 system management module flow diagrams initializing system management module initializing system management module initializing system management module initializing system management module start sets timer interrupt (intta1) initializes variables done
TAN-327 2002-12-06 16 system operation modes management system operation modes management system operation modes management system operation modes management timer interrupt timer interrupt timer interrupt timer interrupt start display-flashing-count process timer-counting for checking scan completion done start power off mode normal mode up step mode memory mode frequency loading mode up scan mode done memory scan mode initial mode tuner frequency set mode tuner command set mode stop mode memory set mode operation mode
TAN-327 2002-12-06 17 3.2 tuner control module this module consists of tuner control module initializing process, tuner communication control process, data transferring interrupt (inttx0) process and data receiving interrupt (intrx0) process. note: source file = tuner.c, tuner.h 3.2.1 ram configuration the following ram chips are used in this module. name data length (byte) contents gtunermsgreceive 3 messages that tuner control module received from other modules : tuner control receiving command, determined frequency gtunermsgsend 4 messages that tuner control module transfers to other modules : tuner control transferring command, frequency received from the tuner, statuses gtunermode 1 tuner control mode guartmode 1 uart operation mode gtunertimeoutcnt 2 tuner control time-out counter gtuneroutdatacnt 1 transferring data counter to the tuner gtunerdataindex 1 data index of communication (transferring /receiving data) gtunerdata 5 communication (transferring/receiving data) data buffer gtunerwork 2 frequency conversion working area gtunerbandsw 1 scan data of band switch gtunerbandswbackup 1 data to compare the changes of band switch gtunerbandswchatacnt 1 band sw scan, chatter elimination counter gtunerbandlowend 2 the minimum frequency gtunerbandhightend 2 the maximum frequency gtunerfrequstep 1 frequency data per one stepwidth
TAN-327 2002-12-06 18 3.2.2 tuner control module initializing process initializes variables, ports, and transferring/receiving uart used in tuner control module. also, checks the band switch that selects band for japan/other countries, and sets the minimum/maximum frequencies, and frequency stepwidth. 3.2.3 tuner communication control process receives messages to control the tuner from system operation mode management module, and transfers control commands to the tuner. determines messages for system operation mode management module by the received data. 3.2.4 data transmission interrupt process when there is data to transfer, it is transferred to a transfer buffer. after all the data was transferred, permits receiving data. 3.2.5 data reception interrupt process checks validity of received data. when there is data to receive, it is saved in a receive data buffer. after all the data was received, prohibits receiving data. 3.2.6 tuner control module flow diagrams tuner control module initializing process tuner control module initializing process tuner control module initializing process tuner control module initializing process start sets band-input port sets interrupt for transferring/receiving uart sets the initial value of variables band in japan band in other countries end determines band switch high low
TAN-327 2002-12-06 19 tuner communication control process tuner communication control process tuner communication control process tuner communication control process data transmission i data transmission i data transmission i data transmission interrupt process nterrupt process nterrupt process nterrupt process data reception interrupt process data reception interrupt process data reception interrupt process data reception interrupt process data receiving completed done start control mode time out receiving status communication error no yes done wait data receiving data transferring data transferring reception completed done start data error received data no no communication error yes data received prohibits reception prohibits reception done start transferring data no data transferring yes transferring completed permits reception
TAN-327 2002-12-06 20 3.3 key control module this module consists of key control module initializing process, key scan(intta0)process, and key decoding process. note: source file = key.c, key.h 3.3.1 ram configuration the following ram chips are used in this module. name data length (byte) contents gkeyscan 1 scan data of key input gkeyscanbackup 1 data for comparing the changes of key input gkeychatacnt 1 chatter elimination counter in key scan process gkeypushcnt 1 counts up while the key is held down in key scan process gkeydecode 1 key decoded data gkeydata 1 key confirmed data gstereosignal 1 scan data of stereo signals gstereosignalbackup 1 data for comparing the changes of stereo signals gstereosignalchatacnt 1 chatter elimination counter for stereo signals 3.3.2 key control module initializing process initializing variables, ports, and timer interrupts used in key control module. 3.3.3 key scan process timer interrupt is generated every 2-ms cycle, and key scan data is read out from a port connected to the key. the key scan data executes chatter elimination for about 30-ms, and fixes the key scan data. if the scan data does not change after it was fixed, counts up how long the key is held down. 3.3.4 key decoding process receives key scan data through the input from key scan process, and decodes it to key data. basically, the key data input is accepted when the key was released. as an exception, the key data is accepted when up scan is executed while up key is pressed for 500 ms, and decodes inputs through pressing memory key and up key at the same time as memory scan.
TAN-327 2002-12-06 21 3.3.5 key control module flow diagrams key control module initializing process key control module initializing process key control module initializing process key control module initializing process key sca key sca key sca key scan process n process n process n process key decoding process key decoding process key decoding process key decoding process start initializes ports initializes variables done done start input values changed chattering counting up completes chatter elimination no sets key scan data clears the chattering counter determines key scan counts up while a key is held down. yes eliminating done start key scan a key is pressed once sets a key pressed once no pressed accepts a key pressed once released yes pressed keys accepts a key pressed longer accepts multiple keys pressed together
TAN-327 2002-12-06 22 3.4 display control module this module consists of display control module initializing process, and display mode management process. note: source file = display.c, display.h 3.4.1 ram configuration the following ram chips are used in this module. name data length (byte) contents gdispmsg 5 messages that display control module receives from other modules. : display control mode, frequency, receiving station numbers, display on/off gdisp_workspace 6 working area for creating display data gdispdisplaycondi 1 managing on/off status for display 3.4.2 initializing display control module initializing variables, ports, lcd driver, lcd functions, and interfaces used in display control module. 3.4.3 display mode management process receives messages that control a display through system operation mode management module. creates display data according to display mode, and uses the lcd driver to show the indications on a display. the followings are display modes managed in display mode management process. display mode process description power-off mode lcd is off, and clears contents shown on a display. normal mode shows ?fm? and ?receiver frequency? on a display. up step mode clears ?blank? shown on a display. frequency loading mode clears ?blank? shown on a display. memory display mode shows ?fm?, ?memo?, ?receiving station numbers?, and ?receiver frequency? on a display. up search mode shows ?seek? on a display or clears ?blank? shown on a display. memory search mode shows ?memo? and ?seek? on a display or clears ?memo? and ?blank?, and ?receiving station numbers? shown on a display. initial mode lcd is on. display clear mode shows ?fm? on a display. clears ?memo?, ?receiving station numbers?, and ?blank? shown on a display.
TAN-327 2002-12-06 23 3.4.4 display control module flow diagram display control module initializing process display control module initializing process display control module initializing process display control module initializing process display mode management process display mode management process display mode management process display mode management process done start display is cleared sets lcd function display is off initializes lcd driver start power off mode normal mode up step mode memory display mode up search mode memory search mode done display clear mode initial mode memory display mode display mode
TAN-327 2002-12-06 24 3.5 lcd driver module this module consists of lcd driver module initializing process and lcd display data transfer process to drive hitachi hd44780u (lcd-ii). note: source file = lcddriver.c, lcddriver.h this module is created to support controlling both port and bus to control lcd. (note: information about bus controlling is described for the purpose of reference.) defining access mode in a header file of lcd driver (lcddriver.h) as ?bus access? or ?port access? enables to switch the port control to the bus control. use the same methods to control the port and bus as the one to set the jumper on a pcb. for the details about lcd, please see the hd44780u (lcd- ) data sheet. #define portaccess 0 port accessing to lcd #define busaccess 1 bus accessing to lcd #define accessmode portaccess (here, the port control is selected.) #if accessmode [bus controlling is set] (note: define ram for accessing lcd at address 0x20000.) #else [port controlling is set] #endif
TAN-327 2002-12-06 25 3.5.1 lcd driver module initialization process in lcd driver module initializing process, related registers, ports, and variables are initialized. also, there are modules to set functions and interfaces for lcd settings, and the modules are used to set lcd formats. the followings are modules in lcd driver module initializing process. module name process description lcd driver initializing process initializes the related registers, ports, and variables. display clearing process after clearing all displays, sets address zero of ddram to the address counter. cursor home process sets address zero of ddram to the address counter. (a shifted display is returned. the contents of ddram are not changed.) entry mode setting process sets directions of a cursor, and shift/not shift the display. (this settings are executed when data is written or read out.) display off process turns a display off display on process turns a display on, a cursor on/off, and sets blinking characters at the cursor cursor/display shifting process sets movements of a cursor and a display shifting without changing the contents of ddram. functions setting process sets interface data length, lines per display, and fonts. 3.5.2 lcd display data transfer process in this process, data is written to lcd and read out from lcd using several modules. the followings are the modules used in lcd display data transfer process. module name process description cgram write process writes successive data in cgram. cgram read process reads successive data from cgram. ddram write process writes successive data in ddram. ddram read process reads successive data from ddram.
TAN-327 2002-12-06 26 3.5.3 lcd driver module flow diagram lcd driver initializing process lcd driver initializing process lcd driver initializing process lcd driver initializing process display clear process display clear process display clear process display clear process cursor home process cursor home process cursor home process cursor home process done start initializes port settings sets data register access waits automatic initialization of lcd done start sets instruction register access transfers display-clear command confirms ?busy? done start sets instruction register access transfers cursor home command confirms ?busy?
TAN-327 2002-12-06 27 entry mode setting process entry mode setting process entry mode setting process entry mode setting process display off process display off process display off process display off process display on process display on process display on process display on process transfers display-clear command done start creates entry mode setting command sets instruction register access confirms ?busy? done start sets instruction register access transfers display off command confirms ?busy? done start transfers display on command creates display on command sets instruction register access confirms ?busy?
TAN-327 2002-12-06 28 cursor/display shifting process cursor/display shifting process cursor/display shifting process cursor/display shifting process functions setting process functions setting process functions setting process functions setting process write cgram process write cgram process write cgram process write cgram process done start transfers cursors/display shift command creates cursors/display shift command sets access for instruction register confirms ?busy? done start transfers function set command creates function set commands sets access for instruction register confirms ?busy? done start writes data sets cgram address completes writing data no yes
TAN-327 2002-12-06 29 read cgram process read cgram process read cgram process read cgram process write ddram process write ddram process write ddram process write ddram process read ddram process read ddram process read ddram process read ddram process done start reads data sets ddram address completes reading data no yes done start reads data sets cgram address completes reading data no yes done start writes data sets ddram address completes writing data no yes
TAN-327 2002-12-06 30 ? toshiba is continually working to improve the quality and reliability of its products. nevertheless, semiconductor devices in general can malfunction or fail due to their inherent electrical sensitivity and vulnerability to physical stress. it is the responsibility of the buyer, when utilizing toshiba products, to comply with the standards of safety in making a safe design for the entire system, and to avoid situations in which a malfunction or failure of such toshiba products could cause loss of human life, bodily injury or damage to property. in developing your designs, please ensure that toshiba products are used within specified operating ranges as set forth in the most recent toshiba products specifications. also, please keep in mind the precautions and conditions set forth in the ?handling guide for semiconductor devices,? or ?toshiba semiconductor reliability handbook? etc.. ? the toshiba products listed in this document are intended for usage in general electronics applications (computer, personal equipment, office equipment, measuring equipment, industrial robotics, domestic appliances, etc.). these toshiba products are neither intended nor warranted for usage in equipment that requires extraordinarily high quality and/or reliability or a malfunction or failure of which may cause loss of human life or bodily injury (?unintended usage?). unintended usage include atomic energy control instruments, airplane or spaceship instruments, transportation instruments, traffic signal instruments, combustion control instruments, medical instruments, all types of safety devices, etc.. unintended usage of toshiba products listed in this document shall be made at the customer?s own risk. ? the products described in this document are subject to the foreign exchange and foreign trade laws. ? the information contained herein is presented only as a guide for the applications of our products. no responsibility is assumed by toshiba corporation for any infringements of intellectual property or other rights of the third parties which may result from its use. no license is granted by implication or otherwise under any intellectual property or other rights of toshiba corporation or others. ? the information contained herein is subject to change without notice. 000707eb a restrictions on product use


▲Up To Search▲   

 
Price & Availability of TAN-327

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X